package online.flowerinsnow.minecraft.bukkit.testffa.api;

import online.flowerinsnow.minecraft.bukkit.testffa.manager.ICombatManager;
import online.flowerinsnow.minecraft.bukkit.testffa.manager.IEnderPearlCoolDownManager;
import online.flowerinsnow.minecraft.bukkit.testffa.manager.IStatsManager;
import org.jetbrains.annotations.NotNull;

/**
 * TestFFAAPI主入口
 */
public class TestFFAAPI {
    private static ICombatManager combatManager;
    private static IStatsManager statsManager;
    private static IEnderPearlCoolDownManager enderPearlCoolDownManager;

    public static void init(@NotNull ICombatManager combatManager,
                            @NotNull IStatsManager statsManager,
                            @NotNull IEnderPearlCoolDownManager enderPearlCoolDownManager) {
        TestFFAAPI.combatManager = combatManager;
        TestFFAAPI.statsManager = statsManager;
        TestFFAAPI.enderPearlCoolDownManager = enderPearlCoolDownManager;
    }

    /**
     * 获取战斗状态管理器
     * 
     * @return 战斗状态管理器
     */
    public static ICombatManager getCombatManager() {
        return combatManager;
    }

    /**
     * 获取玩家战绩管理器
     * 
     * @return 玩家战绩管理器
     */
    public static IStatsManager getStatsManager() {
        return statsManager;
    }

    /**
     * 获取玩家末影珍珠冷却时间管理器
     *
     * @return 玩家末影珍珠冷却时间管理器
     */
    public static IEnderPearlCoolDownManager getEnderPearlCoolDownManager() {
        return enderPearlCoolDownManager;
    }
}
